#include "mainwindow.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QFont font("ZYSong18030",12);
    a.setFont(font);

    QSplitter *splitterMain=new QSplitter(Qt::Horizontal,0);
    QTextEdit *textLeft =new QTextEdit(QObject::tr("left widget"),splitterMain);
    textLeft->setAlignment(Qt::AlignCenter);

    QSplitter *splitterRight=new QSplitter(Qt::Vertical,splitterMain);
    splitterRight->setOpaqueResize(false); //是否实时更新分割边线
    QTextEdit *textup=new QTextEdit(QObject::tr("up widget"),splitterRight);
    textup->setAlignment(Qt::AlignCenter);
    QTextEdit *textbottom=new QTextEdit(QObject::tr("bottom widget"),splitterRight);
    textbottom->setAlignment(Qt::AlignCenter);
    splitterMain->setStretchFactor(1,1);
    splitterMain->setWindowTitle(QObject::tr("splitter"));
    splitterMain->show();

    //MainWindow w;
    //w.show();

    return a.exec();
}
